<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8" />
  <meta name="viewport"
    content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  <meta name="format-detection" content="telephone=no,email=no,date=no,address=no" />
  <title>工作台</title>
  <link rel="stylesheet" type="text/css" href="../css/api.css" />
  <link rel="stylesheet" type="text/css" href="../css/style.css" />
  <style>
    .empty {
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      height: 50px;
      width: 95%;
      margin-left: auto;
      margin-right: auto;
    }

    .empty ul {
      width: 100%;
      margin-top: 20px;
    }

    .empty ul li {
      width: 25%;
      float: left;
      text-align: center;
    }

    .empty ul li img {
      width: 70%;
    }
  </style>
</head>

<body>
  <div class="empty">
    <ul id="text1" style="">

    </ul>
  </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/jquery.js"></script>
<script type="text/javascript">
  apiready = function () {
    var ret = $api.getStorage("userSession");
    if (ret.data.enterprise.systemVersion.versioname == "集成版本") {
      var use = ret.data.sysRole.sysRoleCode.role_number;
      //考勤、健康、、病虫、工作计划、智能喷灌、视频 
      var html = `<li  onclick="openDetail('gongzuotai/att_management_window.html')" >
                   <img src="../image/kq.png" style='width:30px;height:30px'/>
                       <p>考勤管理</p>
                   </li>
                   <li  onclick="openDetail('gongzuotai/healthy_window.html')">
                   <img src="../image/jk.png"  style='width:30px;height:30px'/>
                       <p>健康模块</p>
                   </li>
                   <li  onclick="openDetail('gongzuotai/bingchonghai_window.html')">
                   <img src="../image/bch.png" style='width:30px;height:30px' />
                       <p>病虫害</p>
                   </li>
                   <li  style="display: ${use == 'construction' ? 'none' : 'block'};" onclick="openDetail('gongzuotai/zichan_list_window.html')">
                   <img src="../image/zc.png" style='width:30px;height:30px'/>
                       <p>资产管理</p>
                   </li>
                   <li  onclick="openDetail('./workplan_window.html')">
                    
                   <img src="../image/gzjh.png"  style='width:30px;height:30px;margin-top:${use == 'construction' ? '0px' : '34px'};'/>
                       <p>工作计划</p>
                   </li>
                   <li style="display: ${use == 'construction' ? 'none' : 'block'};"   onclick="openDetail('gongzuotai/penguang_window.html')">
                    <br>
                    <br>
                   <img src="../image/pgxt.png" style='width:30px;height:30px'/>
                       <p>智能喷灌</p>
                   </li>
                   <li  onclick="openDetail('videos/video_list_wim.html')">
                    <br>
                    <br>
                   <img src="../image/sp.png" style='width:30px;height:30px'/>
                       <p>视频监控</p>
                   </li>
                   <li style="display: ${use == 'construction' ? 'none' : 'block'};" onclick="openDetail('gongzuotai/nengyuantongji_window.html')">
                   <br>
                   <br>
                   <img src="../image/nygl.png" style='width:30px;height:30px'/>
                       <p>能源管理</p>
                   </li>
                   
                    
             
                   <li style="display: ${use == 'construction' ? 'none' : 'block'};"  onclick="openDetail('gongzuotai/shuju_list_window.html')">
                    <br>
                    <br>
                   <img src="../image/sssj.png" style='width:30px;height:30px;'/>
                       <p>实时数据</p>
                   </li>
                    
                    <li   style="display: ${use == 'construction' ? 'none' : 'block'};"  onclick="openDetail('gongzuotai/shuju_list2_window.html')">
                   	<br>
                    <br>
                   <img src="../image/sjjs.png" style='width:30px;height:30px' />
                       <p>数据解释</p>
                   </li>
                   <li style="display: ${use == 'construction' ? 'none' : 'block'};"   onclick="openDetail('gongzuotai/lightinglist_win.html')">
                    <br>
                    <br>
                   <img src="../image/pgxt.png" style='width:30px;height:30px'/>
                       <p>控制设备</p>
                   </li>
                  `;
      $("#text1").append(html);
    } else if (ret.data.enterprise.systemVersion.versioname == "专业版本") {
      var use = ret.data.sysRole.sysRoleCode.role_number;
      //考勤、健康、、病虫、工作计划、智能喷灌、视频
      var html = `<li   onclick="openDetail('gongzuotai/att_management_window.html')" >
                   <img src="../image/gzjh.png" />
                       <p>考勤管理</p>
                   </li>
                   <li  onclick="openDetail('gongzuotai/healthy_window.html')">
                   <img src="../image/jk.png" />
                       <p>健康模块</p>
                   </li>
                   
                   <li  onclick="openDetail('gongzuotai/bingchonghai_window.html')">
                   <img src="../image/bch.png" />
                       <p>病虫害</p>
                   </li>
                   <li  onclick="openDetail('./workplan_window.html')">
                   <img src="../image/db.png" />
                       <p>工作计划</p>
                   </li>
                   <li  style="display: ${use == 'construction' ? 'none' : 'block'};" onclick="openDetail('gongzuotai/zichan_list_window.html')">
                   <br>
                   <br>
                   <img src="../image/zichan.png" />
                       <p>资产管理</p>
                   </li>
                   <li  style="display: ${use == 'construction' ? 'none' : 'block'};" >
                   <br>
                   <br>
                   <img src="../image/yibiaopan.png" />
                       <p>数据分析</p>
                   </li>
                   <li>
                   <br><br>
                   <li   style="display: ${use == 'construction' ? 'none' : 'block'};"  onclick="openDetail('gongzuotai/penguang_window.html')">
                   <img src="../image/kzpz.png" />
                       <p>智能喷灌</p>
                   </li>
                   <br><br>
                   <li   style="display: ${use == 'construction' ? 'none' : 'block'};"  onclick="openDetail('gongzuotai/alarm_window.html')">
                   <img src="../image/gaojing.png" />
                       <p>告警管理</p>
                   </li>
                    <br><br>
                    <li style="display: ${use == 'construction' ? 'none' : 'block'};"  onclick="openDetail('gongzuotai/shuju_list_window.html')">
                    <br>
                    <br>
                   <img src="../image/sssj.png" style='width:30px;height:30px;'/>
                       <p>实时数据</p>
                   </li>
                    
                    <li   style="display: ${use == 'construction' ? 'none' : 'block'};"  onclick="openDetail('gongzuotai/shuju_list2_window.html')">
                   	<br>
                    <br>
                   <img src="../image/sjjs.png" style='width:30px;height:30px' />
                       <p>数据解释</p>
                   </li>
                   <li style="display: ${use == 'construction' ? 'none' : 'block'};"   onclick="openDetail('gongzuotai/lightinglist_win.html')">
                    <br>
                    <br>
                   <img src="../image/pgxt.png" style='width:30px;height:30px'/>
                       <p>控制设备</p>
                   </li>
                  `;
      $("#text1").append(html);
    } else if (ret.data.enterprise.systemVersion.versioname == "管理版本") {
      var use = ret.data.sysRole.sysRoleCode.role_number;
      //考勤、健康、、病虫、工作计划、智能喷灌、视频
      var html = `<li  onclick="openDetail('gongzuotai/att_management_window.html')" >
                   <img src="../image/gzjh.png" />
                       <p>考勤管理</p>
                   </li>
                   <li  onclick="openDetail('gongzuotai/healthy_window.html')">
                   <img src="../image/jk.png" />
                       <p>健康模块</p>
                   </li>
                   <li  onclick="openDetail('equip/repair_win.html')">
                   <img src="../image/jk.png" />
                       <p>设施管理</p>
                   </li>
                   <li  style="display: ${use == 'construction' ? 'none' : 'block'};" onclick="openDetail('gongzuotai/zichan_list_window.html')">
                   <img src="../image/zichan.png" />
                       <p>资产管理</p>
                   </li>
                   <li   style="display: ${use == 'construction' ? 'none' : 'block'};"  onclick="openDetail('gongzuotai/penguang_window.html')">
                   <img src="../image/kzpz.png" />
                       <p>智能喷灌</p>
                   </li>
                  `;
      $("#text1").append(html);
    }
    /*  if ("builder" != userid) {
       $("#text1").append(
         "<li onclick=\"openDetail('gongzuotai\/zichan_list_window.html')\">" +
         '<img src="..\/image\/zichan.png"\/>' +
         "<p>资产管理<\/p>" +
         "<\/li>" +
         "<li onclick=\"openDetail('gongzuotai\/shuju_list_window.html')\">" +
         '<img src="..\/image\/shuju.png" \/>' +
         "<p>数据列表<\/p>" +
         "<\/li>" +
         "<li onclick=\"openDetail('gongzuotai\/yibiaopan_window.html')\">" +
         '<img src="..\/image\/yibiaopan.png"\/>' +
         "<p>仪表盘<\/p>" +
         "<\/li>" +
         "<li onclick=\"openDetail('gongzuotai\/gaojing_window.html')\">" +
         '<img src="..\/image\/gaojing.png" \/>' +
         "<p>告警信息<\/p>" +
         "<\/li>" +
         '<li onclick="openDetail(\'gongzuotai\/bingchonghai_window.html\')" style="margin-top: 20px">' +
         '<img src="..\/image\/bch.png" \/>' +
         "<p>病虫害管理<\/p>" +
         "<\/li>" +
         '<li onclick="openDetail(\'gongzuotai\/nengyuantongji_window.html\')" style="margin-top: 20px">' +
         '<img src="..\/image\/ny.png" \/>' +
         "<p>能源管理<\/p>" +
         "<\/li>" +
         '<li onclick="openDetail(\'workplan_window.html\')" style="margin-top: 20px">' +
         '<img src="..\/image\/gzjh.png" \/>' +
         "<p>工作计划<\/p>" +
         "<\/li>" +
         '<li onclick="openDetail(\'gongzuotai\/configuration_window.html\')" style="margin-top: 20px">' +
         '<img src="..\/image\/kzpz.png" \/>' +
         "<p>控制配置<\/p>" +
         "<\/li>" +
         '<li onclick="openDetail(\'gongzuotai\/att_management_window.html\')" style="margin-top: 20px">' +
         '<img src="..\/image\/kzpz.png" \/>' +
         "<p>考勤管理<\/p>" +
         "<\/li>" +
         '<li onclick="openDetail(\'gongzuotai\/healthy_window.html\')" style="margin-top: 20px">' +
         '<img src="..\/image\/kzpz.png" \/>' +
         "<p>健康模块<\/p>" +
         "<\/li>"
       );
     } else {
       $("#text1").append(
         "<li onclick=\"openDetail('gongzuotai\/zichan_list_window.html')\">" +
         '<img src="..\/image\/zichan.png"\/>' +
         "<p>资产管理<\/p>" +
         "<\/li>" +
         "<li onclick=\"openDetail('gongzuotai\/gaojing_window.html')\">" +
         '<img src="..\/image\/gaojing.png" \/>' +
         "<p>告警信息<\/p>" +
         "<\/li>" +
         "<li onclick=\"openDetail('gongzuotai\/bingchonghai_window.html')\">" +
         '<img src="..\/image\/bch.png" \/>' +
         "<p>病虫害管理<\/p>" +
         "<\/li>" +
         "<li onclick=\"openDetail('workplan_window.html')\">" +
         '<img src="..\/image\/gzjh.png" \/>' +
         "<p>工作计划<\/p>" +
         "<\/li>"
       );
     } */
  };
</script>

</html>